Contents | Index | < Browse | Browse >

LETTERlogULETTER Natural logarithm function.

Overview
#include <math.h>

r = log(x);

double r;
double x;

Portability
ANSI

Description
Computes the natural logarithm to the base E. Both the data expected and returned are double-precision floating-point values. This function is the opposite to exp.

Returns
The natural logarithm as a double-precision floating-point value.

See also
exp , log10